#!/usr/bin/env node

// let argv = require('yargs')
//     .alias('n', 'name')
//     .argv

let argv = require('yargs')
    .option('n', {
        alias: 'name',
        demand: true,
        default: 'dafault',
        describe: 'describe',
        type: 'string',
        // boolean: true
    })
    .command("morning", "good morning", function (yargs) {
        console.log("Good Morning");
      })
      .command("evening", "good evening", function (yargs) {
        console.log("Good Evening");
      })
    .usage('Usage: hello [options]')
    .example('hello -n tom', 'say hello to Tom')
    .help('h')
    .alias('h', 'help')
    .epilog('copyright 2015')
    .argv;


console.log('hello yagrs', argv.n)
console.log(argv._)